﻿#region Copyrights Notice
//©2009 Microsoft Corporation.  All rights reserved.
#endregion

using System;
using System.Web;
using System.Web.UI;


namespace BitlockerRecovery
{
    public partial class Agreement : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Session["Accepted"] = "false";
                if (HttpContext.Current.User == null)
                {
                    HttpApplication httpapp = (HttpApplication)HttpContext.Current.ApplicationInstance;
                    httpapp.Application.Clear();
                }

            }
        }
        protected void Accept_Click(object sender, EventArgs e)
        {
            Session["Accepted"] = "true";
            Response.Redirect("Default.aspx");
        }
        protected void NotAccept_Click(object sender, EventArgs e)
        {
            Session["Accepted"] = "false";
        }
    }
}
